Skip to main content

Change User Password

PUT /api/v1/users/{userId}/change-password

Description

Change the password of a user.

Path Parameters

NameTypeDescription
userIdstringThe ID of the user whose password is being changed (path)

Request Body

  • Content Type: application/json
{
"oldPassword": "string",
"newPassword": "string",
"confirmPassword": "string"
}

Response Code: 200 - OK

Description

Password changed successfully.

Response Fields

The response does not contain any specific fields.

Method: PUT

>http://your-api-url/api/v1/users/{userId}/change-password

Headers

Content-TypeValue
apiKey{{apiKey}}

Body

{
"oldPassword": "oldPass123",
"newPassword": "newPass123",
"confirmPassword": "newPass123"
}

🔑 Authentication bearer

ParamValueType
token{{accessCode}}string

LANGUAGE

AUTHORIZATION

Bearer

CURL REQUEST


curl --request PUT \ 
--url /api/v1/users/{userId}/change-password \
--header 'accept: application/json' \
--header 'content-type: application/json'

RESPONSE


Click Try It! to start a request and see the response here!